package io.starteos.wallet.utils.eos.crypto.util;

import io.starteos.wallet.utils.eos.crypto.ec.EcDsa;
import io.starteos.wallet.utils.eos.crypto.ec.EcSignature;
import io.starteos.wallet.utils.eos.crypto.ec.EosPublicKey;
import io.starteos.wallet.utils.eos.crypto.util.HexUtils;

public class SigCheckUtils {
	
	
	public static String check(String message, String str) {
		EcSignature sig = new EcSignature(str);
		EosPublicKey  puk = EcDsa.recoverPubKey(HexUtils.toBytes(message), sig);
		return puk.toString();
	}

}
